home *** CD-ROM | disk | FTP | other *** search
- 98
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- SystemTime
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSystemTime returns the current time/date.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baSystemTime( Format )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Format is the time/date format to return.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the requested time/date.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set theTime = baSystemTime( "date" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- theTime := baSystemTime( "Today is %A" ) -- returns the day eg "Today is
- --- RECORDSEPARATOR ---
- Tuesday"
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- There are two predefined formats - "time" and "date"
- --- RECORDSEPARATOR ---
- "time" will return the current time in 24 hour format with leading zeros - hours,
- --- RECORDSEPARATOR ---
- minutes and seconds eg "230412". It will always be 6 characters long.
- --- RECORDSEPARATOR ---
- "date" will return the date in year, month, day eg "19980321". It will always be 8
- --- RECORDSEPARATOR ---
- characters long,
- --- RECORDSEPARATOR ---
- Other formatting is available. Any of these constants will be replaced by the
- --- RECORDSEPARATOR ---
- appropriate time/date - any other characters will be returned as is.
- --- RECORDSEPARATOR ---
- %a
- --- RECORDSEPARATOR ---
- Abbreviated weekday name
- --- RECORDSEPARATOR ---
- %A
- --- RECORDSEPARATOR ---
- Full weekday name
- --- RECORDSEPARATOR ---
- %b
- --- RECORDSEPARATOR ---
- Abbreviated month name
- --- RECORDSEPARATOR ---
- %B
- --- RECORDSEPARATOR ---
- Full month name
- --- RECORDSEPARATOR ---
- %d
- --- RECORDSEPARATOR ---
- Day of month as decimal number (1 - 31)
- --- RECORDSEPARATOR ---
- %0d
- --- RECORDSEPARATOR ---
- Day of month with leading 0
- --- RECORDSEPARATOR ---
- %H
- --- RECORDSEPARATOR ---
- Hour in 24-hour format (0 - 23)
- --- RECORDSEPARATOR ---
- %0H
- --- RECORDSEPARATOR ---
- Hour in 24-hour format with leading 0
- --- RECORDSEPARATOR ---
- %j
- --- RECORDSEPARATOR ---
- Day of year as decimal number (1 - 366)
- --- RECORDSEPARATOR ---
- %0j
- --- RECORDSEPARATOR ---
- Day of year as decimal number with leading 0
- --- RECORDSEPARATOR ---
- %m
- --- RECORDSEPARATOR ---
- Month as decimal number (1 - 12)
- --- RECORDSEPARATOR ---
- %0m
- --- RECORDSEPARATOR ---
- Month as decimal number with leading 0
- --- RECORDSEPARATOR ---
- %M
- --- RECORDSEPARATOR ---
- Minute as decimal number (0 - 59)
- --- RECORDSEPARATOR ---
- %0M
- --- RECORDSEPARATOR ---
- Minute as decimal number with leading 0
- --- RECORDSEPARATOR ---
- %S
- --- RECORDSEPARATOR ---
- Second as decimal number (0 - 59)
- --- RECORDSEPARATOR ---
- %0S
- --- RECORDSEPARATOR ---
- Second as decimal number with leading 0
- --- RECORDSEPARATOR ---
- %w
- --- RECORDSEPARATOR ---
- Weekday as decimal number (0 - 6; Sunday is 0)
- --- RECORDSEPARATOR ---
- %y
- --- RECORDSEPARATOR ---
- Year without century, as decimal number (00 - 99)
- --- RECORDSEPARATOR ---
- %Y
- --- RECORDSEPARATOR ---
- Year with century, as decimal number
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
- "%d %B, %Y"
- --- RECORDSEPARATOR ---
- "2 June, 1998"
- --- RECORDSEPARATOR ---
- "It is %M past %H on %A"
- --- RECORDSEPARATOR ---
- "It is 23 past 10 on Tuesday"
- --- RECORDSEPARATOR ---
- "The time is %H:%0M:%0S"
- --- RECORDSEPARATOR ---
- "The time is 14:25:04"
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetSystemTime